package com.qst.tuxing;

public class Test01 {
    public static void main(String[] args) {

        for (int i = 1; i <= 5; i++) {
            // 打空格
            for (int k = 1; k <=5-i; k++) {
                System.out.print(" ");
            }

            for (int j = 1; j <= i*2-1; j++) {
                // 每循环一次打一个*
                System.out.print("*");
            }
            // 每打完一行就换行
            System.out.println();
        }
    }
    }

